package zuoye3;
class User{
    private int zh;
    private String mm;
    private String email;
    public User(int zh,String mm){
        this.zh = zh;
        this.mm = mm;
    }
    public User(int zh, String mm, String email) {
        this.zh = zh;
        this.mm = mm;
        this.email = email;
    }
    public void xs(){
        if(email==null){
            System.out.println("您的账号为"+zh+"您的密码为"+mm);
        }
        else {
            System.out.println("您的账号为"+zh+"您的密码为"+mm+"您的邮箱为"+email);
        }
    }
}
public class zuoye3 {
    public static void main(String[] args) {
        User u1=new User(123456,"54632k");
        User u2=new User(234567,"45687l","12345@qq.com");
        u1.xs();
        u2.xs();
    }
}
